package com.quasar.hpatient.onInterface;

import com.quasar.hpatient.model.httpmodel.AnotherResult;
import com.quasar.hpatient.model.medicalmodel.CommunityData;
import com.quasar.hpatient.view.community.bean.CommentConfig;
import com.quasar.hpatient.view.community.bean.CommentItem;
import com.quasar.hpatient.view.community.bean.FavortItem;


/**
 * Created by suneee on 2016/7/15.
 */
public interface CircleContract {

    interface View extends BaseView{
        void update2DeleteCircle(String circleId);
        void update2AddFavorite(int circlePosition, FavortItem addItem);
        void update2DeleteFavort(int circlePosition, String favortId);
        void update2AddComment(int circlePosition, CommunityData.ListCommentBean addItem);
        void update2DeleteComment(int circlePosition, String commentId);
        void updateEditTextBodyVisible(int visibility, CommunityData.ListCommentBean commentConfig);
        void update2loadData(int loadType, AnotherResult<CommunityData> data);
        void onError(String msg);
    }

    interface Presenter {
        void loadData(int loadType);
        void deleteCircle(final String circleId);
        void addFavort(final int circlePosition);
        void deleteFavort(final int circlePosition, final String favortId);
        void deleteComment(final int circlePosition, final String commentId);

    }
}
